Skip to content

Better handling of chapter generation#39

Merged
domingoladron merged 2 commits intomasterfrom
feature/better-handling-epub-chapters
Jan 7, 2025
Merged

Better handling of chapter generation#39
domingoladron merged 2 commits intomasterfrom
feature/better-handling-epub-chapters

Conversation

@domingoladron
Copy link
Collaborator

What this change is about

If an EPub TOC contained many chapters, but all of them use the same html file with an anchor href on it (as in my-content-page.html##some-anchor-name, we were getting way too many Epub.Chapter referrences.

Instead, we check if the absolute path of the chapter (my-content-page.html) has already been added to the final list of chapters, and if so, ignore any others added.

GitHub Issue

What I've changed

  • List changes

@domingoladron domingoladron merged commit 8587962 into master Jan 7, 2025
1 check passed
@domingoladron domingoladron deleted the feature/better-handling-epub-chapters branch January 7, 2025 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant